<%--
  Created by IntelliJ IDEA.
  User: zjzhai
  Date: 9/29/13
  Time: 8:52 PM
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
    <meta name="layout" content="main" />%{--使用main布局--}%
    <title>${session.accountShowName}个人中心</title>
</head>
<body>
头像：<g:showPortrait mini="true"/>

<g:form controller="person" action="updateInfo" method="post">
    姓名：<g:textField name="name" value="${person?.name}" required="true"/> <br/>
    生日：<g:datePicker name="birthday" precision="day" value="${person?.birthday}"/><br/>
    性别:<g:select name="gender" from="${genders}" optionKey="key" value="${person?.gender?.key}"/> <br/>
    <g:submitButton name="submit" value="提交"/>


</g:form>



<g:uploadForm controller="person" action="uploadPortrait">
    <input type="file" name="portrait" />
    <input type="submit" />
</g:uploadForm>

</body>
</html>